import {requestService} from "@/utils/requestNew";

export function getLP() {
  return requestService({
    url: "/user/getLP",
    method: "get"
  })
}

export function getParams() {
  return requestService({
    url: "/user/getParams",
    method: "get"
  })
}

export function getOpinions(data, token) {
  return requestService({
    url: "/user/getOpinions",
    method: "get",
    headers: {
      token: token
    },
    params: data
  })
}

export function updataOpinion(data, token) {
  return requestService({
    url: "/index/updataOpinion",
    method: "get",
    params: data,
    headers: {
      token: token
    }
  })
}

export function updataComboOrder(data, token) {
  return requestService({
    url: "/comboOrder/updataComboOrder",
    method: "get",
    params: data,
    headers: {
      token: token
    }
  })
}

export function getUsers(data) {
  return requestService({
    url: "/user/getUsers",
    method: "get",
    params: data
  })
}

export function getCombos(data) {
  return requestService({
    url: "/combo/getCostItems",
    method: "get",
    params: data
  })
}

export function updataCostItem(data, token) {
  return requestService({
    url: "/costItem/updataCostItem",
    method: "get",
    headers: {
      token: token
    },
    params: data
  })
}

export function updataCombo(data, token) {
  return requestService({
    url: "/combo/updataCombo",
    method: "get",
    headers: {
      token: token
    },
    params: data
  })
}

export function updataParam(data, token) {
  return requestService({
    url: "/user/updataParam",
    method: "get",
    headers: {
      token: token
    },
    params: data
  })
}

export function getSelectRecord(data, token) {
  return requestService({
    url: "/cr/getChargeRecord",
    method: "get",
    params: data,
    headers: {
      token: token
    }
  })
}

export function getPayRecords(data, token) {
  return requestService({
    url: "/pay-order/getPayRecords",
    method: "get",
    params: data,
    headers: {
      token: token
    }
  })
}

